package com.example.weather.model;

import com.google.gson.annotations.SerializedName;

public class RealtimeResponse {
    private String status;
    private Result result;

    @Override
    public String toString() {
        return "RealtimeResponse{" +
                "status='" + status + '\'' +
                ", result=" + result +
                '}';
    }

    public String getStatus() {
        return status;
    }

    public Result getResult() {
        return result;
    }

    public static class Result {
        private RealTime realtime;

        @Override
        public String toString() {
            return "Result{" +
                    "realtime=" + realtime +
                    '}';
        }

        public RealTime getRealtime() {
            return realtime;
        }
    }

    public static class RealTime {
        private String skycon;
        private Float temperature;
        @SerializedName("air_quality")
        private AirQuality airQuality;

        @Override
        public String toString() {
            return "RealTime{" +
                    "skycon='" + skycon + '\'' +
                    ", temperature=" + temperature +
                    ", airQuality=" + airQuality +
                    '}';
        }

        public String getSkycon() {
            return skycon;
        }

        public Float getTemperature() {
            return temperature;
        }

        public AirQuality getAirQuality() {
            return airQuality;
        }
    }

    public static class AirQuality {
        private AQI aqi;

        @Override
        public String toString() {
            return "AirQuality{" +
                    "aqi=" + aqi +
                    '}';
        }

        public AQI getAqi() {
            return aqi;
        }
    }

    public static class AQI {
        private Float chn;

        @Override
        public String toString() {
            return "AQI{" +
                    "chn=" + chn +
                    '}';
        }

        public Float getChn() {
            return chn;
        }
    }
}
